Skip to content

feat(docs): add logo intro and optimize hero animation - #28

Merged
caorushizi merged 1 commit into
masterfrom
codex/docs-hero-logo-performance
Sep 8, 2026
Merged

caorushizi merged 1 commit into
masterfrom
codex/docs-hero-logo-performance

Conversation

@caorushizi

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings September 8, 2026 00:22
@vercel

vercel Bot commented Sep 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
one-cli-docs Ready Ready Preview Sep 8, 2026 12:22am UTC

@caorushizi
caorushizi merged commit d3334f2 into master Sep 8, 2026
9 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

There is a TypeScript type/value import issue in hero-canvas.tsx (import type * as THREE used with typeof THREE) that is likely to break compilation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR refactors the docs home hero WebGL animation by extracting the workspace scene into a dedicated module, adding an introductory “brand arcs” animation, and improving runtime behavior (lazy-loading, render scheduling, and cleanup) for better perceived performance.

Changes:

  • Added a new createWorkspace module that encapsulates the workspace scene construction and per-frame update logic.
  • Added procedural brand-arc geometry and integrated a short intro sequence before the workspace settles in.
  • Reworked the hero canvas runtime to dynamically import Three.js + RoomEnvironment, render only when needed, and handle resize/visibility/context-loss more robustly.
File summaries
File Description
apps/docs/src/app/(home)/hero-workspace.ts New extracted workspace scene builder/updater used by the hero canvas.
apps/docs/src/app/(home)/hero-canvas.tsx Integrates new intro + workspace modules, adds dynamic imports and render scheduling/cleanup.
apps/docs/src/app/(home)/hero-brand-geometry.ts New procedural geometry for the “brand arcs” intro element.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +5 to 9
import type * as THREE from "three";
import { createBrandArcGeometry } from "./hero-brand-geometry";
import { createWorkspace, type ModuleId } from "./hero-workspace";

type Three = typeof THREE;
Comment on lines +1001 to +1002
setOpacity(printedMark.materials, markRaw * 0.94);
printedMark.labelMaterials.forEach((material) => setMaterialOpacity(material, markRaw * 0.94));

This branch was successfully deployed

1 active deployment
Preview — 2f57062f Deployed Sep 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants